﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace Micro.Modules.Abstractions
{
    /// <summary>
    /// 模块程序集加载上下文
    /// </summary>
    public interface IModuleAssemblyLoadContext
    {
        /// <summary>
        /// 添加程序集
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        Assembly Add(string path);

        Assembly Get(string assemblyName);

        IEnumerable<Assembly> GetAssemblies();

        void Unload();
    }
}
